Optimal. Leaf size=129 \[ -\frac {2^{\frac {1}{2}+m} a \cos (e+f x) \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {(c-d) (1-\sin (e+f x))}{2 (c+d \sin (e+f x))}\right ) (a+a \sin (e+f x))^{-1+m} \left (\frac {(c+d) (1+\sin (e+f x))}{c+d \sin (e+f x)}\right )^{\frac {1}{2}-m} (c+d \sin (e+f x))^{-m}}{(c+d) f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 129, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {2867, 134}
\begin {gather*} -\frac {a 2^{m+\frac {1}{2}} \cos (e+f x) (a \sin (e+f x)+a)^{m-1} \left (\frac {(c+d) (\sin (e+f x)+1)}{c+d \sin (e+f x)}\right )^{\frac {1}{2}-m} (c+d \sin (e+f x))^{-m} \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {(c-d) (1-\sin (e+f x))}{2 (c+d \sin (e+f x))}\right )}{f (c+d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 134
Rule 2867
Rubi steps
\begin {align*} \int (a+a \sin (e+f x))^m (c+d \sin (e+f x))^{-1-m} \, dx &=\frac {\left (a^2 \cos (e+f x)\right ) \text {Subst}\left (\int \frac {(a+a x)^{-\frac {1}{2}+m} (c+d x)^{-1-m}}{\sqrt {a-a x}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\\ &=-\frac {2^{\frac {1}{2}+m} a \cos (e+f x) \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {(c-d) (1-\sin (e+f x))}{2 (c+d \sin (e+f x))}\right ) (a+a \sin (e+f x))^{-1+m} \left (\frac {(c+d) (1+\sin (e+f x))}{c+d \sin (e+f x)}\right )^{\frac {1}{2}-m} (c+d \sin (e+f x))^{-m}}{(c+d) f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.47, size = 187, normalized size = 1.45 \begin {gather*} -\frac {2 \cos ^2\left (\frac {1}{4} (2 e-\pi +2 f x)\right )^{\frac {1}{2}+m} \cot \left (\frac {1}{4} (2 e+\pi +2 f x)\right ) \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {(c-d) \sin ^2\left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{c+d \sin (e+f x)}\right ) (a (1+\sin (e+f x)))^m \left (\frac {(c+d) \cos ^2\left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{c+d \sin (e+f x)}\right )^{-\frac {1}{2}-m} (c+d \sin (e+f x))^{-1-m} \sin ^2\left (\frac {1}{4} (2 e+\pi +2 f x)\right )^{\frac {1}{2}-m}}{f} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.14, size = 0, normalized size = 0.00 \[\int \left (a +a \sin \left (f x +e \right )\right )^{m} \left (c +d \sin \left (f x +e \right )\right )^{-1-m}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: HeuristicGCDFailed} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m}{{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{m+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________